import request from '@/utils/request'
// 查看计费规则列表
export function getCarRulesAPI() {
  return request({
    url: '/parking/rule/list'
  })
}
// 新增计费规则
export function createRuleAPI(data) {
  return request({
    url: '/parking/rule',
    method: 'POST',
    data
  })
}
// 先查看计费规则
export function getRuleAPI(id) {
  return request({
    url: `/parking/rule/${id}`
  })
}
// 编辑计费规则
export function editRuleAPI(data) {
  return request({
    url: '/parking/rule',
    method: 'PUT',
    data
  })
}
// 删除按钮
export function delRuleAPI(id) {
  return request({
    url: `/parking/rule/${id}`,
    method: 'delete'
  })
}
